<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head th:replace="top::html">
    <title>千人智库管理系统首页</title>
</head>
<body class="fixed hold-transition skin-blue">
    <div class="wrapper">
        <div th:replace="tophtml::html"></div>
        <div th:replace="left::html"></div>
        <div class="content-wrapper">
            <section class="content-header">
                <h1>
                    <span>查看历史详情</span>
                    <small>
                    </small>
                </h1>
                <ol class="breadcrumb">
                    <li th:replace="${prevPage}::section.content-header/ol/li"></li>
                    <li><a href="">查看历史详情</a></li>
                </ol>
            </section>

            <section class="content container-fluid">
                <form id="from1" th:action="${showHistoryButts}" method="get">
                    <input type="hidden" name="pageNo" id="pageNo" />
                    <input type="hidden" name="buttdetails" th:value="${param.buttdetails}" />
                    <input type="hidden" name="pid" th:value="${demand} ? ${demand.pid} : ${project.pid}" />
                    <input type="hidden" name="customerId" th:if="${customerId}" th:value="${customerId}" />
                </form>
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">历史对接列表</h3>
                        <form style="display: inline;" th:action="${#strings.replace(showHistoryButts, 'HistoryButts', 'AddButt')}" method="get">
                        	<input type="hidden" name="detailPid" th:if="${param.buttdetails}" th:value="${param.buttdetails}">
                        	<input type="hidden" name="customerId" th:if="${customerId}" th:value="${customerId}">
                        	<input type="submit" class="btn btn-primary" value="更新对接详情">
                        </form>
                    </div>
                    <div class="box-body">
                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                    <th>序号</th>
                                    <th>对接介绍</th>
                                    <th>负责人</th>
                                    <th>对接时间</th>
                                    <th>对接状态</th>
                                    <th>对接详情</th>
                                    <th>对接附件</th>
                                </tr>
                                <tr th:each="collect,iterStat : ${pageInfo.list}">
                                    <td th:text="${iterStat.index+1}">1.</td>
                                    <td>
                                        <p style="font-weight:bold" th:if="${collect.expertName}" th:text="${collect.expertName}"></p>
                                        <p style="font-weight:bold" th:if="${collect.demandName}" th:text="${collect.demandName}"></p>
                                        <p style="font-weight:bold" th:if="${collect.projectName}" th:text="${collect.projectName}"></p>
                                        <p style="font-weight:bold" th:if="${collect.customerName}" th:text="${collect.customerName}"></p>
                                        <p style="font-weight:bold" th:if="${collect.confName}" th:text="${collect.confName}"></p>
                                    </td>
                                    <td th:text="${collect.buttName}"></td>
                                    <td th:text="${collect.buttDataTime}"></td>
                                    <td th:text="${collect.buttStatusWorth}">已签合作协议111</td>
                                    <td>
                                        <div class="col-md-3" style="width:100%;font-size: 14px;">
                                            <div class="box box-default collapsed-box" style="border-top:0px solid #d2d6de;">
                                                <div class="box-header with-border">
                                                    <span th:if="${#strings.length(collect.buttDetails)>30}">
                                                        <span th:text="${#strings.substring(collect.buttDetails,0,30)+'......'}"></span>
                                                    </span>
                                                    <span th:unless="${#strings.length(collect.buttDetails)>30}">
                                                        <span th:text="${collect.buttDetails}"></span>
                                                    </span>
                                                    <div class="box-tools pull-right" th:if="${#strings.length(collect.buttDetails)>30}">
                                                        <button type="button" class="btn btn-box-tool" data-widget="collapse">
                                                        	<i class="fa fa-plus"></i>
                                                        </button>
                                                    </div>
                                                </div>
                                                <div class="box-body" style="display: none;">
                                                    <span th:text="${collect.buttDetails}"></span>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                    <td><a th:if="${collect.buttaNnex}" th:href="@{'/details/download?fileName='+${collect.buttaNnex}}">对接附件</a></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div th:replace="page::html"></div>
                </div>
            </section>
        </div>
        <div th:replace="footer::html"></div>
        <div class="control-sidebar-bg"></div>
    </div>
    <div th:replace="bottom::html"></div>
</body>

</html>